<?php
/**
 * demo-zf
 *
 * @author Adam Pilacki <adam.pilacki@gmail.com>
 */

//Przeczytaj docs/readme.txt
//Pls read docs/readme.txt


/* Define path to application directory */
define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/../application'));

/* Define application environment */
define('APPLICATION_ENV', 'development');

/* set error reporting */
error_reporting(E_ALL | E_STRICT);

/* Set the time zone for Poland */
date_default_timezone_set('Europe/Warsaw');

/* Ensure vendor/ is on include_path */
//set_include_path(realpath(APPLICATION_PATH . '/../vendor' . get_include_path()));
set_include_path(realpath(APPLICATION_PATH . '/../vendor'));

/** Zend_Application */
require_once 'Zend/Application.php';

/* Create application and run */
$application = new Zend_Application(APPLICATION_ENV, APPLICATION_PATH . '/../configs/application.ini');

$application->getBootstrap()
    ->bootstrapAutoload()
    ->bootstrapRouter()
    ->bootstrapFrontController()
    ->run();